/*
 * Project: BeatifIntredPlayer
 * Copyright © ByUsi
 * Source Code Repository: https://giitee.com/byusi/beatifintredplayer
 */
//css依赖
import '../styles/main.css';
import '../styles/animations.css';
import '../styles/ui-animations.css';
import '../styles/strengthen.css';
import '../styles/iii.css';
import '../styles/iii2.css';


// 强制引入所有模块
import * as PlayerModule from './player';
import * as UIModule from './ui';
import * as DanmakuModule from './danmaku';
import * as APIModule from './api';
import * as UtilsModule from './utils';
import './ui-presets';

//sdk
import './sdk/flv';
import './sdk/hls';
import './sdk/jquery.min';
import './sdk/dp/DPlayer.min';
import './sdk/dp/DPlayer.min.css';

// 合并所有功能
const BeatifIntredPlayer = PlayerModule.default;
Object.assign(BeatifIntredPlayer, {
    UI: UIModule.default,
    Danmaku: DanmakuModule.default,
    API: APIModule.default,
    Utils: UtilsModule.default
});

// 强制保留所有模块
if (process.env.NODE_ENV === 'production') {
    const keep = [
        PlayerModule,
        UIModule,
        DanmakuModule,
        APIModule,
        UtilsModule
    ];
}

export default BeatifIntredPlayer;
